import request from '@/utils/request'

// 查询询报价需求列表
export function listDemand(query) {
  return request({
    url: '/inquiry/demand/list',
    method: 'get',
    params: query
  })
}

export function listApplication(detail){
  return request({
    url:'/inquiry/demand/lisstdetail',
    method:'get',
    params:detail
  })
}

// 查询询报价需求详细
export function getDemand(inquiryDemandNumber) {
  return request({
    url: '/inquiry/demand/' + inquiryDemandNumber,
    method: 'get'
  })
}

// 新增询报价需求
export function addDemand(data) {
  return request({
    url: '/inquiry/demand',
    method: 'post',
    data: data
  })
}

// 修改询报价需求
export function updateDemand(data) {
  return request({
    url: '/inquiry/demand',
    method: 'put',
    data: data
  })
}

// 删除询报价需求
export function delDemand(inquiryDemandNumber) {
  return request({
    url: '/inquiry/demand/' + inquiryDemandNumber,
    method: 'delete'
  })
}
